public class 数字解密 {
    public static void main(String[] args) {
        int[] arr = {8,3,4,6};
        System.out.println("解密后的数字是：" );
        int[] newArr = Decryption(arr);
        for (int i = 0; i < newArr.length; i++) {
            System.out.print(newArr[i]);
        }
    }
    public static int[] Decryption(int[] arr) {
        int[] newarr = new int[arr.length];
        for (int i = 0; i < arr.length; i++) {
            if(arr[3-i] >= 5){
                newarr[i] = arr[3 - i] - 5;
            }
            else{
                newarr[i] = arr[3 - i]  + 5;
            }
        }
        return newarr;
    }
}
